#ifndef UPDATABLE_HEADER
#define UPDATABLE_HEADER


#include <string>

//Drawable and Updatable never inherits GameEntity -> Diamond of Death
class Updatable {
public:
	

	//The update function that is called by the game engine
	void update();

	void setMaxFrequency(int frequency);

	//The actual update function should be defined in the implemented object
	virtual void actualUpdate(unsigned long long timePassed) = 0;
	

protected:
	Updatable(int);					//Constructor by initilizing frequency
	virtual ~Updatable();			//Destructor
	
	//The maximum frequency that the implemented object is updated with
	int maxFrequency;
	double lastTime;
};

#endif